package com.ericom.dao.hibernate;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ericom.dao.StockOutDao;
import com.ericom.model.StockOut;

@Repository("stockOutDao")
public class StockOutDaoHibernate extends GenericDaoHibernate<StockOut, Long> implements
		StockOutDao {

	public StockOutDaoHibernate(){
		super(StockOut.class);
	}

	public List<StockOut> findStockOutByProduct(Long pid) {
		
		return this.getHibernateTemplate().find("from StockOut where productId=?",pid);
	}

}
